
use "Table10data.dta" 

ssc install outreg2
*************************Livestock Income***************************************


xtreg log_value_animal log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)
outreg2 using DIDanimal.tex,replace ctitle(Full) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Value of livestock"\label{tab1})


xtreg log_value_animal log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1950, cluster(FIPS)

outreg2 using DIDanimal.tex,append ctitle($<$ 1950) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Value of livestock"\label{tab1})

xtreg log_value_animal log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1960, cluster(FIPS)

outreg2 using DIDanimal.tex,append ctitle($<$ 1960) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Value of livestock"\label{tab1})

xtreg log_value_animal log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP if year<1970, cluster(FIPS)

outreg2 using DIDanimal.tex,append ctitle($<$ 1970) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Continuous Impact of Farmland Conservation on Value of livestock"\label{tab1})
